package com.bb.blog.activiti.config.listener;

import org.activiti.engine.delegate.event.ActivitiEvent;
import org.activiti.engine.delegate.event.ActivitiEventListener;

public class MyActivitiEventListener implements ActivitiEventListener {
    @Override
    public void onEvent(ActivitiEvent event) {
        System.out.println(
                "流程: " + event.getProcessDefinitionId() + "\n " +
                        "实例: " + event.getProcessInstanceId() + "\n" +
                        "事件: " + event.getExecutionId());
    }

    @Override
    public boolean isFailOnException() {
        return false;
    }
}
